﻿@model Finance.Web.Models.User
@{
    ViewBag.Title = "Авторизация";
}
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <form class="form-horizontal" role="form" action="~/Home/Login" method="post">
              <div class="form-group">
                  <div class="col-sm-10 col-sm-offset-2 error">
                    @Html.ValidationMessage("error")
                  </div>
              </div>
              <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">@Html.LabelFor(model => model.Login)</label>
                <div class="col-sm-10">
                  <input type="text" name="user.login" class="form-control" id="inputEmail3" placeholder="Login" required>
                </div>
              </div>
              <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">@Html.LabelFor(model => model.Password)</label>
                <div class="col-sm-10">
                  <input type="password" name="user.password" class="form-control" id="inputPassword3" placeholder="Password" required>
                </div>
              </div>
              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                  <button type="submit" class="btn">Войти</button>
                </div>
                <div class="col-sm-2">
                   <a class="btn" href="~/Home/Register">Регистрация</a>
                </div>
              </div>
            </form>
        </div>
    </div>    
</div>
